import type { TablePaginationConfig } from "ant-design-vue";
import { ComputedRef } from "vue";
export interface TabItem {
  key: string;
  tabName: string;
  countKey: string;
  numberStyle: any;
}
export interface MessageNum {
  platformNotifi: number;
  enterpriseNotifi: number;
  workOrderNotifi: number;
  alarmNotofi: number;
}
export interface MessageItem {
  messageTitle: string;
  content: string;
  id?: string;
  createdOn: string;
}
export enum AlarmType {
  ALL = "ALL",
  PROJECT = "PROJECT",
  TYPE = "TYPE",
  // EARLY_WARNING = "EARLY_WARNING",
}
/**
 * old APi
 */
export enum MessageType {
  NOTIFY = "NOTIFY",
  NOTICE = "NOTICE",
  // EARLY_WARNING = "EARLY_WARNING",
}
export enum BusinessType {
  SYS_NOTICE = "SYS_NOTICE",
  // EARLY = "EARLY",
}
export enum MessageState {
  SENDING = "SENDING",
  SENDED = "SENDED",
}
export interface NotifiDto {
  author?: string;
  businessType?: string;
  content?: string;
  messgeType?: string;
  title?: string;
  userId?: string;
}

export interface ReqSaveNotifiItem {
  notificationsSaveDto?: NotifiDto;
  userIds: Array<string>;
}
// FormItem
export interface FormAddItem {
  author?: string;
  businessType?: string;
  content?: string;
  messageType?: string;
  noticeType?: string;
  title?: string;
  userId?: string;
  state?: string;
  userIds?: Array<string>;
}
// 搜索消息请求
export interface ReqNotifiItem {
  businessType: string;
  messgeType: string;
  searchText: string;
  state: string;
}

export interface NotifiItem {
  author?: string;
  businessType?: string;
  content?: string;
  createOn?: string;
  isRead?: boolean;
  massgeType?: string;
  notificationId?: string;
  sendOn?: string;
  state?: string;
  title?: string;
  userId?: string;
}

export interface SendNotifi {
  notificationsId?: string;
}
